public class Test {
	public static void main(String[] args) {
		Doviz d = new Dolar(new AFirma());
		System.out.println("Dolar Alis AFirma : " + d.alisFiyati());
		System.out.println("Dolar Satis AFirma : " + d.satisFiyati());

		System.out.println("----------------------------------");
		d = new Dolar(new BFirma());
		System.out.println("Dolar Alis BFirma : " + d.alisFiyati());
		System.out.println("Dolar Satis BFirma : " + d.satisFiyati());
		System.out.println("----------------------------------");

		d = new Euro(new AFirma());
		System.out.println("Euro Alis AFirma : " + d.alisFiyati());
		System.out.println("Euro Satis AFirma : " + d.satisFiyati());
		System.out.println("----------------------------------");

		d = new Euro(new BFirma());
		System.out.println("Euro Alis BFirma : " + d.alisFiyati());
		System.out.println("Euro Satis BFirma : " + d.satisFiyati());
		System.out.println("----------------------------------");
	}
}
